
import {SET_MENU} from '../actions/menu-action';

import InitState from '../state/menu-state';

function setMenu(state = InitState,action) {
    switch (action.type) {
        case SET_MENU:
            return Object.assign({},state,action.payload);
        default:
            return state;
    }
}

export {
    setMenu
}